import request from "@/utils/request";

// 分页查询护理模板
export function searchCarePlanTemplateOfConditions(params) {
	return request({
		url: "/sinohis/pension/nurse/template/searchCarePlanTemplateOfConditions",
		method: 'get',
		params
	});
}

// 分页查询项目套餐
export function searchOfPackageOfConditions(params) {
	return request({
		url: "/sinohis/pension/fee/packagemanager/searchOfPackageOfConditions",
		method: 'get',
		params
	});
}

// 添加护理计划模版
export function addTemplate(data) {
	return request({
		url: "/sinohis/pension/nurse/template/addTemplate",
		method: 'post',
		data
	});
}

// 启用护理计划模板
export function enableCarePlanTemplate(data) {
	return request({
		url: "/sinohis/pension/nurse/template/enableCarePlanTemplate/" + data.templateNumber,
		method: 'PUT',
		data
	});
}

// 禁用护理计划模板
export function disableOrEnableNursePlanItem(data) {
	return request({
		url: "/sinohis/pension/nurse/template/disableOrEnableNursePlanItem/" + data.templateNumber,
		method: 'PUT',
		data
	});
}

// 护理模板添加套餐护理项目
export function addMealItemPlanToTemplate(data) {
	return request({
		url: "/sinohis/pension/nurse/template/addMealItemPlanToTemplate/" + data.templateNumber,
		method: 'post',
		data
	});
}

// 向护理模板添加护理套餐外项目
export function addExtraItemPlanToTemplate(data) {
	return request({
		url: "/sinohis/pension/nurse/template/addExtraItemPlanToTemplate/" + data.templateNumber,
		method: 'post',
		data
	});
}

// 修改套餐外项目护理计划
export function modifyExtraItemPlanToTemplate(data) {
	return request({
		url: "/sinohis/pension/nurse/template/modifyExtraItemPlanToTemplate/" + data.tcMark,
		method: 'PUT',
		data
	});
}

// 修改套餐内项目护理计划
export function modifyMealItemPlanToTemplate(data) {
	return request({
		url: "/sinohis/pension/nurse/template/modifyMealItemPlanToTemplate/" + data.tcMark,
		method: 'PUT',
		data
	});
}

// 模版内容详情查询
export function searchCarePlanTemplateContentVO(params) {
	return request({
		url: "/sinohis/pension/nurse/template/searchCarePlanTemplateContentVO/" + params.templateNumber,
		method: 'get',
		params
	});
}

// 启用护理计划模板内容
export function enableCarePlanTemplateContent(data) {
	return request({
		url: "/sinohis/pension/nurse/template/enableCarePlanTemplateContent/" + data.tcMark,
		method: 'PUT',
		data
	});
}

// 禁用护理计划模板内容
export function disableCarePlanTemplateContent(data) {
	return request({
		url: "/sinohis/pension/nurse/template/disableCarePlanTemplateContent/" + data.tcMark,
		method: 'PUT',
		data
	});
}

// 根据助记码或name查询所有项目类目子项
export function searchAllItemInfos(data) {
	return request({
		url: "/sinohis/pension/fee/itemmanager/searchAllItemInfos",
		// url: "/apisinohis/pension/fee/itemmanager/searchAllItemInfos?mnemonicCodeOrName=" + data.mnemonicCodeOrName + '&nurseItemBol=' + data.nurseItemBol,
		method: 'post',
		data
	});
}

// 查询项目套餐信息
export function searchmeal(params) {
	return request({
		url: "/sinohis/pension/fee/packagemanager/searchPackageInfo/" + params.mark,
		method: 'get',
		params
	});
}
